package connector.homework4;

public class TestWarrior {
    public static void main(String[] args) {
        Warrior warrior =new BloodWarrior(30,10);
        warrior.win();
        warrior.injure(5);
        System.out.println("战斗后的经验值"+warrior.getExperience()+",战斗后的血液量"+
                warrior.getBlood());
    }
}
